package com.yt.product.models.dto;

import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.yt.common.dto.BaseDTO;

/**
 * 产品信息DTO
 *
 * @author chen
 * @Date 2025-09-05 14:09:49
 */
@Data
@TableName("product_info")
@ApiModel(value="产品信息对象", description="产品信息对象")
public class ProductInfoDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "数据版本号（乐观锁控制）")
    private Integer revision;
    @ApiModelProperty(value = "产品名称")
    private String productName;
    @ApiModelProperty(value = "关联供应商ID（关联supplier_info.id）")
    private Long supplierId;
    @ApiModelProperty(value = "关联分类ID（关联product_category.id）")
    private Long categoryId;
    @ApiModelProperty(value = "产品状态：0-下架，1-在售")
    private Integer status;
    @ApiModelProperty(value = "产品库存数量")
    private Long stock;
}